﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;

namespace Reviewer.Entities.Services
{

    /// <summary>
    /// System Text Service Interface
    /// </summary>
    [ServiceContract(Namespace = "Reviewer.Services")]
    public interface ISystemTextService : IDisposable
    {
        /// <summary>
        /// Finds all elements.
        /// </summary>
        /// <returns></returns>
        [OperationContract]
        ICollection<SystemText> Find();

        /// <summary>
        /// Finds the specified id.
        /// </summary>
        /// <param name="id">The id.</param>
        /// <returns></returns>
        [OperationContract]
        SystemText Find(Int32 id);
    }

    /// <summary>
    /// System Text administration service interface
    /// </summary>
    [ServiceContract]
    public interface ISystemTextAdminService : IDisposable
    {
        /// <summary>
        /// Deletes the specified id.
        /// </summary>
        /// <param name="id">The id.</param>
        [OperationContract]
        void Delete(int id);

        /// <summary>
        /// Saves the specified text.
        /// </summary>
        /// <param name="text">The text.</param>
        /// <returns></returns>
        [OperationContract]
        SystemText Save(SystemText text);
    }
}
